package com.giantlizard.cloud.base.annotation;


import com.giantlizard.cloud.base.enums.LogicalEnum;

import java.lang.annotation.*;

@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface PermissionRequired {

    /**
     * 需要校验的权限码
     */
    String[] value() default {};

    /**
     * 验证模式：AND | OR，默认AND
     */
    LogicalEnum logical() default LogicalEnum.AND;
}